﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Warehouse.Domain
{
    /// <summary>
    /// 质检结果表
    /// </summary>
    public class QualityResult
    {
        /// <summary>
        /// 质检主键Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int QRId { get; set; }
        /// <summary>
        /// 生产订单id
        /// </summary>
        public int ProdunctionId { get; set; }

        /// <summary>
        /// 合格与否(bool-true合格/false不合格)
        /// </summary>
        public bool PassOrFail { get; set; }

        /// <summary>
        /// 具体数值
        /// </summary>
        public int SpecificValues { get; set; }

        /// <summary>
        /// 描述(合格/不合格的描述)
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 供应商名称(可为空--采买原料入库时填写)
        /// </summary>
        public string? SupplierName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime QRCreateTime { get; set; }= DateTime.Now;
        /// <summary>
        /// 逻辑删
        /// </summary>
        public bool IsDel { get; set; }
    }
}
